
public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(10);
        myLinkedList.addFirst(100);
        myLinkedList.addFirst(1000);
        myLinkedList.addFirst(10000);
        myLinkedList.addFirst(100000);
        myLinkedList.display();
        System.out.println("-----------");
        myLinkedList.redisplay();
        System.out.println("-----------");
        myLinkedList.printList(myLinkedList.head);
        System.out.println();
        System.out.println("-----------");
        myLinkedList.print(myLinkedList.head);
    }
}
